package cic;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;
import javax.swing.JTextArea;

public class LetterWindow {

	private JFrame frame;
	private JTextArea txt;
	
	public LetterWindow(String content) {
		
		frame = new JFrame("Decesion Letter");
		txt = new JTextArea(content);
		txt.setEditable(false);
		
		frame.addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent arg0) {
				System.exit(1);
			}
		});
		
		
		frame.add(txt);
		frame.pack();
		Point pt = new Point(700, 200);
		Dimension dm = new Dimension(400, 200);
		frame.setLocation(pt);
		frame.setSize(dm);
		frame.setVisible(true);
				
	}
	

}
